#include <stdio.h>
#include <math.h>

int main()
{
    int m;
    int oneTemp;
    int temp;
    int now;
    int oneLast=0;
    int base=1;
    scanf("%d", &m);
	if(m<0){
		printf("fu ");
		m/=-1;
	}
	
	oneTemp=m;
	oneLast=0; 
	while(oneTemp/10!=0){
		temp=oneTemp;
		base=1; 
		while(temp/10!=0){
			temp /= 10;
			base*=10;
		}
		if(temp==9){
			printf("jiu ");
		}else if(temp==8){
			printf("ba ");
		}else if(temp==7){
			printf("qi ");
		}else if(temp==6){
			printf("liu ");
		}else if(temp==5){
			printf("wu ");
		}else if(temp==4){
			printf("si ");
		}else if(temp==3){
			printf("san ");
		}else if(temp==2){
			printf("er ");
		}else if(temp==1){
			if(oneLast==1){
				printf("ling ");
				oneLast=0; 
			}else{
				printf("yi ");
			}
			
		}else if(temp==0){
			printf("ling ");
		}
		//printf("%d ", temp);
		oneTemp -= base*temp;
		if(base>1 && oneTemp==0){
			oneTemp = base/10;
			oneLast=1;
		}
		
	}
	if(oneTemp==9){
		printf("jiu");
	}else if(oneTemp==8){
		printf("ba");
	}else if(oneTemp==7){
		printf("qi");
	}else if(oneTemp==6){
		printf("liu");
	}else if(oneTemp==5){
		printf("wu");
	}else if(oneTemp==4){
		printf("si");
	}else if(oneTemp==3){
		printf("san");
	}else if(oneTemp==2){
		printf("e");
	}else if(oneTemp==1){
		if(oneLast==1){
			printf("ling");
			oneLast=0; 
		}else{
			printf("yi");
		}
	}else if(oneTemp==0){
		printf("ling");
	}
	//printf("%d\n", oneTemp);	
    return 0;
}


